import { useState } from "react"
export default function useMousePoint() {
  const [mousePoint, setMousePoint] = useState({ x: 0, y: 0 })

  const boxClick = (e) => {
    console.log(e)
    setMousePoint({ x: e.clientX, y: e.clientY })
  }
  return { mousePoint, setMousePoint, boxClick }
}
